package com.shigui.news.service;

import java.util.List;

import com.shigui.news.model.Comment;
import com.shigui.news.model.News;

public interface CommentService {

	Comment selectById(Integer id);
	
	List<Comment> select();
	
	Integer getCountListIntegerByNews(News news);
	
	List<Comment> select(News news, Integer page, Integer count);
	
	void insert(Comment comment);
	
	void update(Comment comment);
	
	void delete(Comment comment);
	
	List<Comment> getCommentsList(Integer newsId);
	
	void delete(Integer newsId);
	
	Integer countCommentsList(News news);
}
	
	
	
	
